package com.service.impl;

import com.bean.KillNode;
import com.bean.Role;
import com.mapper.KillNodeMapper;
import com.mapper.RoleMapper;
import com.service.KillNodeService;
import com.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;


    @Override
    public List<Role> checkAll() {
        Role role=new Role();
        return roleMapper.select(role);
    }

    @Override
    public Role checkOne(Role r) {
        return roleMapper.select(r).get(0);
    }


}
